<template>
  <div class="Parent">
    <h3>我是Parent{{num}}</h3>
    <Child1></Child1>
  </div>
</template>

<script>
import Child1 from "./Child1"
export default {
    name:"Parent",
    components:{
        Child1
    },
    data(){
        return{
            num:0
        }
    }
}
</script>

<style scoped>
.Parent{
    background: goldenrod;
}
</style>